package kevin.framework.basic.common.ui;

import java.util.HashMap;
import java.util.Map;

/**
* @ClassName: LanguageStore
* @Description: TODO
* @author hjwen
* @date 2018年10月10日 下午8:45:01
*/
public class LanguageStore {
	
	private static Map<String, LanguageMap> languageMap = new HashMap<String, LanguageMap>();
	
	
	
	/** 
	* @Title: getLanguageStore 
	* @Description: TODO 
	* @return
	* @throws 
	*/
	public static Map<String, LanguageMap> getLanguageStore(){
		return languageMap;
	}
	
	/** 
	* @Title: getLanguageMap 
	* @Description: 根据语言key获取 语言map 
	* @param key
	* @return
	* @throws 
	*/
	public static LanguageMap getLanguageMap(String key){
		return languageMap.get(key);
	}
	
	/** 
	* @Title: getValueByKey 
	* @Description: 根据key获取配置的值 
	* @param lang
	* @param key
	* @return
	* @throws 
	*/
	public static String getValueByKey(String lang,String key){
		LanguageMap currentLanguageMap = languageMap.get(lang);
		return currentLanguageMap.getLangByKey(key);
	}
	
}
